@include('admin.common.header')
<!--tab nav start-->
<section class="panel">
    <header class="panel-heading tab-bg-dark-navy-blue ">
        <ul class="nav nav-tabs">
            <li @if ($_active['_action'] == 'list-on')  class="active" @endif>
                <a href="/admin/goods?type=1">在售商品</a>
            </li>
            <li @if ($_active['_action'] == 'list-off')  class="active" @endif>
                <a href="/admin/goods?type=0">下架商品</a>
            </li>
            <li @if ($_active['_action'] == 'add')  class="active" @endif>
                <a href="/admin/goods/add">添加商品</a>
            </li>
        </ul>
    </header>
    <div class="panel-body">
        <div class="tab-content">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        @if($msg['pageData']['count'] == 0)
                            <div class="no-data">暂无要查询的内容</div>
                        @else
                            <table class="table table-striped table-advance table-hover">
                                <thead>
                                <tr>
                                    <th>曝光用户</th>
                                    <th>违章地址</th>
                                    <th>车牌号</th>
                                    <th>图片</th>
                                    <th>备注</th>
                                    <th>时间</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($msg['list'] as $g)
                                    <tr>
                                        <td>{{ $g->nick_name }}</td>
                                        <td>{{ $g->address }}</td>
                                        <td>{{ $g->num }}</td>
                                        <td><img style="width: 200px" src="{{ $g->img[0] }}"></td>
                                        <td>{{ $g->remark }}</td>
                                        <td>{{ $g->time }}</td>
                                        <td>
                                            <button href="/admin/msg/delete/{{ $g->id }}" class="delete btn btn-danger btn-xs"><i class="icon-trash "></i></button>
                                        </td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        @endif
                    </section>
                </div>
            </div>
            @if($msg['pageData']['lastPage'] > 1)
                <div id="page" style="width:500px;margin: 0 auto;">
                    {!!  $msg['pageData']['pageHtml'] !!}
                </div>
            @endif
        </div>
    </div>
</section>
<!--tab nav start-->

@include('admin.common.footer')